package com.zhou.spring.cloud.balancer.feign.mode;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.zhou.spring.cloud.balancer.feign.transform.NumericBooleanDeserializer;
import lombok.Data;

/**
 * @author 18576666986
 * @description
 * @createDate 2022/7/21 20:18
 */
@Data
public class XuexinRes {
    /**
     * <xjxl reqid="4028fc996565f5ca016565f703460002">
     * <xl checkrs="1">
     * <xm>周先锋</xm>
     * <zjhm>411323198811246915</zjhm>
     * <cc>本科</cc><yxmc>河南工业大学</yxmc><zymc>计算机科学与技术</zymc><zsbh>*</zsbh><byrq>20110701</byrq><xxxs>普通全日制</xxxs></xl></xjxl>
     * <p>
     * Learning form
     * <p>
     * Certificate No
     */
    @JsonProperty("reqid")
    private String reqid;

    @JsonProperty("xl")
    private StudentInfo studentInfo;


    @Data
    public static class StudentInfo {
        @JsonDeserialize(using = NumericBooleanDeserializer.class)
        @JsonProperty("checkrs")
        private Boolean success;

        @JsonProperty("msg")
        private String failMsg;

        @JsonProperty("xm")
        private String name;

        @JsonProperty("zjhm")
        private String idCard;

        @JsonProperty("cc")
        private String educationLevel;

        @JsonProperty("yxmc")
        private String schoolName;

        @JsonProperty("zymc")
        private String majorName;

        @JsonProperty("byrq")
        private String graduationDate;

        @JsonProperty("xxxs")
        private String learn;

        @JsonProperty("zsbh")
        private String certificateNo;
    }
}
